#include "itemwithcbx.h"
#include "ui_itemwithcbx.h"

ItemWithCbx::ItemWithCbx(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::ItemWithCbx)
{
    ui->setupUi(this);
    connect(ui->comboBox,SIGNAL(currentIndexChanged(int)),this,SIGNAL(settingChanged(int)));
}

ItemWithCbx::~ItemWithCbx()
{
    delete ui;
}

QComboBox *ItemWithCbx::getCbx()
{
    return ui->comboBox;
}

void ItemWithCbx::setShowName(const QString &str)
{
    ui->label->setText(str);
}

void ItemWithCbx::addCbxItems(const QStringList &list)
{
    ui->comboBox->addItems(list);
}
